package com.southpark.demo.control.services.http.config
{
	
	import com.southpark.demo.interfaces.services.IServices;
	import com.southpark.demo.control.services.http.BaseHTTPService;
	import com.southpark.framework.control.proxies.IProxy;
	import com.southpark.system.interfaces.application.IApplication;
	import com.southpark.system.interfaces.managers.IApplicationManager;
	
	import mx.core.FlexGlobals;
	import mx.rpc.http.HTTPService;
	
	
	public class GetConfigSettingsHTTPService extends BaseHTTPService
	{	
		
		public function GetConfigSettingsHTTPService(proxy:IProxy)
		{
   			var applicationManager:IApplicationManager = IApplication(FlexGlobals.topLevelApplication).applicationManager;
			var services:IServices = applicationManager.services as IServices;
   			var httpService:HTTPService = services.httpService;
   			
   			httpService.url = applicationManager.configSettings;
   			
   			super(httpService,proxy);
		}

	}
}